<!DOCTYPE html>
<html>
<head>
	<title>自己的电商系统</title>
	<meta charset="utf-8">
	<link rel="stylesheet" href="__PUBLIC__/css/bootstrap.min.css" />
	<link rel="stylesheet" href="__PUBLIC__/css/bootstrap-theme.min.css" />
	<link rel="stylesheet" href="__PUBLIC__/css/front.css" />
</head>
<body>
	<div class="container">
		<div class="row" id="header">
			<div class="col-md-3">
				<a href="<?=U('home/front/index')?>"><img id="logo" src="__ROOT__<?php echo ("/Public/img/logo.jpg")?>" /></a>
			</div>
		</div>
		<br/>
	</div>
	<div id="regedit_wrapper">
		<div class="container">
			<div id="regedit">
				<div class="panel panel-default">
					<div class="panel-heading">
						用户注册
					</div>
					<div class="panel-body">
						<form action="<?=U('user/do_regedit');?>" method="post">
							<div class="form-group">
								<label>账户名</label>
								<input type="text" class="form-control" name="username" placeholder="请输入账户名..." >
							</div>
							<div class="form-group">
								<label>密码</label>
								<input type="password" class="form-control" name="password" placeholder="请输入密码..." >
							</div>
							<div class="form-group">
								<label>再次输入密码</label>
								<input type="password" class="form-control" name="passwordagain" placeholder="请再次输入密码..." >
							</div>
							<div class="form-group">
								<label>验证码</label>
								<div class="row">
									<div class="col-md-6">
										<input type="text" class="form-control" name="verify" placeholder="请输入验证码...">
									</div>
									<div class="col-md-6">
										<img  src="<?php echo U('user/verify') ?>" id="img"/>	
									</div>
								</div>
							</div>
							<div class="form-group">
								<button type="submit" class="btn btn-block btn-success">登录</button>	
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>
	</div>
</body>
</html>
<script type="text/javascript" src="__PUBLIC__/js/jquery.min.js"></script>
<script type="text/javascript">
	$(window).load(function(){
		$('#regedit #img').click(function(){
			var src=$(this).attr('src')+"?"+Math.floor(Math.random()*10);
			$(this).attr("src",src);
		})
	})
</script>
